Gets the details of a previously created crops passport document

Path Parameters
ParameterDescription
shortcodeThe unique reference number assigned to the passport document

Download Passport GET

Download the details or documentation for an existing crops passport

Parameters

Response Parameters
ParameterDescription
ShortCode StringThe unique reference number assigned to the passport
MembershipGUID StringThe unique identifier for the crops membership the passport belongs to
SiteGUID StringThe unique identifier of the assured site used for the collection address
StoreGUID StringThe unique identifier of the assured grain store to be used for the collection pointOptional
BusinessName StringThe business name shown on the passport document
CollectionAddress StringThe collection address shown on the passport document
CropType StringThe crop type shown on the passport documentOptional
Variety StringThe crop variety shown on the passport documentOptional
StoreOrBinName StringThe store or bin name shown on the passport documentOptional
LoadingDate Date / TimeThe loading date shown on the passport documentOptional
HarvestYear StringThe harvest year shown on the passport documentOptional
HaulierCompanyName StringThe company name of the haulier shown on the passport documentOptional
VehicleRegistration StringThe vehicle registration number of the haulier as shown on the passport documentOptional
TrailerNumber StringThe trailer number shown on the passport documentOptional
HaulierCollectionTicketNo StringThe number of the trailer used to transport the load as shown on the passport document Optional
CertifierName StringThe name of the certification body shown for the assurance claim included on the passport document
MembershipNumber StringThe Red Tractor membership number for the assurance claim included on the passport document
CheckDate Date / TimeThe date the assurance claim included on the passport document was validated
Status StringThe validated status of the assurance claim included on the passport document
ExpiryDate Date / TimeThe certificate expiry date for the assurance claim included on the passport document
Enterprises StringComma-delimited list of the certified enterprises shown for the assurance claim included on the passport document
PostHarvestTreatmentOption EnumerationThe post harvest treatment option indicated in section 4 of the passport documentOptional
PostHarvestTreatmentDate Date / TimeThe date of post-harvest treatment shown in section 4 of the passport documentOptional
PostHarvestTreatmentProduct StringThe product used for post-harvest treatment shown in section 4 of the passport documentOptional
DONRiskAssessmentResult NumberThe risk assessment score to be shown in section 5 of the passport documentOptional
DONTestDate Date / TimeThe date of test shown in section 5 of the passport document Optional
DONTestResult StringThe result shown in section 5 of the passport documentOptional
ZONTestDate Date / TimeThe date of test shown in section 5 of the passport documentOptional
ZONTestResult StringThe result to be shown in section 5 of the passport document Optional
GrainStoreName StringName of grain store used as collection pointOptional
GrainStoreLatitude StringGrain store latitude Optional
GrainStoreLongitude StringGrain store longitudeOptional

Enumerations

Post-Harvest Treatment Option (Response)
ValueDescription
None Indicated
AOption A
BOption B
COption C

XML

Example Request
GET https://api.redtractor.org.uk/v1/passports/{shortcode}.eb HTTP/1.1
Accept: text/xml
Response Schema
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:element name="CropPassport">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="ShortCode" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The unique reference number assigned to the passport </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MembershipGUID" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The unique identifier for the crops membership the passport belongs to</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="SiteGUID" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The unique identifier of the assured site used for the collection address </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="StoreGUID" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The unique identifier of the assured grain store to be used for the collection point</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BusinessName" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The business name shown on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="CollectionAddress" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The collection address shown on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="CropType" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The crop type shown on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="Variety" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The crop variety shown on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="StoreOrBinName" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The store or bin name shown on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="LoadingDate" minOccurs="0" type="xsd:dateTime">
          <xsd:annotation>
            <xsd:documentation>The loading date shown on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="HarvestYear" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The harvest year shown on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="HaulierCompanyName" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The company name of the haulier shown on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="VehicleRegistration" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The vehicle registration number of the haulier as shown on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="TrailerNumber" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The trailer number shown on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="HaulierCollectionTicketNo" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The number of the trailer used to transport the load as shown on the passport document </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="CertifierName" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The name of the certification body shown for the assurance claim included on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MembershipNumber" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The Red Tractor membership number for the assurance claim included on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="CheckDate" type="xsd:dateTime">
          <xsd:annotation>
            <xsd:documentation>The date the assurance claim included on the passport document was validated</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="Status" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The validated status of the assurance claim included on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="ExpiryDate" type="xsd:dateTime">
          <xsd:annotation>
            <xsd:documentation>The certificate expiry date for the assurance claim included on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="Enterprises" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>Comma-delimited list of the certified enterprises shown for the assurance claim included on the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="PostHarvestTreatmentOption" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>The post harvest treatment option indicated in section 4 of the passport document</xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:enumeration value="">
                <xsd:annotation>
                  <xsd:documentation>None Indicated</xsd:documentation>
                </xsd:annotation>
              </xsd:enumeration>
              <xsd:enumeration value="A">
                <xsd:annotation>
                  <xsd:documentation>Option A</xsd:documentation>
                </xsd:annotation>
              </xsd:enumeration>
              <xsd:enumeration value="B">
                <xsd:annotation>
                  <xsd:documentation>Option B</xsd:documentation>
                </xsd:annotation>
              </xsd:enumeration>
              <xsd:enumeration value="C">
                <xsd:annotation>
                  <xsd:documentation>Option C</xsd:documentation>
                </xsd:annotation>
              </xsd:enumeration>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="PostHarvestTreatmentDate" minOccurs="0" type="xsd:dateTime">
          <xsd:annotation>
            <xsd:documentation>The date of post-harvest treatment shown in section 4 of the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="PostHarvestTreatmentProduct" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The product used for post-harvest treatment shown in section 4 of the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DONRiskAssessmentResult" minOccurs="0" type="xsd:double">
          <xsd:annotation>
            <xsd:documentation>The risk assessment score to be shown in section 5 of the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DONTestDate" minOccurs="0" type="xsd:dateTime">
          <xsd:annotation>
            <xsd:documentation>The date of test shown in section 5 of the passport document </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DONTestResult" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The result shown in section 5 of the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="ZONTestDate" minOccurs="0" type="xsd:dateTime">
          <xsd:annotation>
            <xsd:documentation>The date of test shown in section 5 of the passport document</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="ZONTestResult" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>The result to be shown in section 5 of the passport document </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="GrainStoreName" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>Name of grain store used as collection point</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="GrainStoreLatitude" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>Grain store latitude
</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="GrainStoreLongitude" minOccurs="0" type="xsd:string">
          <xsd:annotation>
            <xsd:documentation>Grain store longitude</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
Example Response
HTTP/1.1 200 OK
Content-Type: text/xml

<?xml version="1.0" encoding="utf-8"?>
<CropPassport>
  <ShortCode>xsd:string</ShortCode>
  <MembershipGUID>xsd:string</MembershipGUID>
  <SiteGUID>xsd:string</SiteGUID>
  <StoreGUID>xsd:string</StoreGUID>
  <BusinessName>xsd:string</BusinessName>
  <CollectionAddress>xsd:string</CollectionAddress>
  <CropType>xsd:string</CropType>
  <Variety>xsd:string</Variety>
  <StoreOrBinName>xsd:string</StoreOrBinName>
  <LoadingDate>xsd:dateTime</LoadingDate>
  <HarvestYear>xsd:string</HarvestYear>
  <HaulierCompanyName>xsd:string</HaulierCompanyName>
  <VehicleRegistration>xsd:string</VehicleRegistration>
  <TrailerNumber>xsd:string</TrailerNumber>
  <HaulierCollectionTicketNo>xsd:string</HaulierCollectionTicketNo>
  <CertifierName>xsd:string</CertifierName>
  <MembershipNumber>xsd:string</MembershipNumber>
  <CheckDate>xsd:dateTime</CheckDate>
  <Status>xsd:string</Status>
  <ExpiryDate>xsd:dateTime</ExpiryDate>
  <Enterprises>xsd:string</Enterprises>
  <PostHarvestTreatmentOption>xsd:string</PostHarvestTreatmentOption>
  <PostHarvestTreatmentDate>xsd:dateTime</PostHarvestTreatmentDate>
  <PostHarvestTreatmentProduct>xsd:string</PostHarvestTreatmentProduct>
  <DONRiskAssessmentResult>xsd:double</DONRiskAssessmentResult>
  <DONTestDate>xsd:dateTime</DONTestDate>
  <DONTestResult>xsd:string</DONTestResult>
  <ZONTestDate>xsd:dateTime</ZONTestDate>
  <ZONTestResult>xsd:string</ZONTestResult>
  <GrainStoreName>xsd:string</GrainStoreName>
  <GrainStoreLatitude>xsd:string</GrainStoreLatitude>
  <GrainStoreLongitude>xsd:string</GrainStoreLongitude>
</CropPassport>

JSON

Example Request
GET https://api.redtractor.org.uk/v1/passports/{shortcode}.eb HTTP/1.1
Accept: application/json
Example Response
HTTP/1.1 200 OK
Content-Type: application/json

{"ShortCode":String,
  "MembershipGUID":String,
  "SiteGUID":String,
  "StoreGUID":String,
  "BusinessName":String,
  "CollectionAddress":String,
  "CropType":String,
  "Variety":String,
  "StoreOrBinName":String,
  "LoadingDate":String,
  "HarvestYear":String,
  "HaulierCompanyName":String,
  "VehicleRegistration":String,
  "TrailerNumber":String,
  "HaulierCollectionTicketNo":String,
  "CertifierName":String,
  "MembershipNumber":String,
  "CheckDate":String,
  "Status":String,
  "ExpiryDate":String,
  "Enterprises":String,
  "PostHarvestTreatmentOption":String,
  "PostHarvestTreatmentDate":String,
  "PostHarvestTreatmentProduct":String,
  "DONRiskAssessmentResult":Number,
  "DONTestDate":String,
  "DONTestResult":String,
  "ZONTestDate":String,
  "ZONTestResult":String,
  "GrainStoreName":String,
  "GrainStoreLatitude":String,
  "GrainStoreLongitude":String}

PDF

Example Request
GET https://api.redtractor.org.uk/v1/passports/{shortcode}.eb HTTP/1.1
Accept: application/pdf
Example Response
HTTP/1.1 200 OK
Content-Type: application/pdf

...

Status Codes

Status and Error Codes
HTTP StatusError Code and Description
200

The list of sites and subscriptions is provided in the response

400

OperationError:StatusNotValid

Set the accept header to specify the format in which the passport data is returned. By specifying "application/pdf" as the desired format, the pre-filled document is returned in PDF format ready for final completion and printing.